package cn.shyouchi.wuguanjia.android.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by movier on 16/9/20.
 */

public class User implements Parcelable {

    private String username;
    private String password;
    private String name;
    private String gender;
    private String address;
    private String people;
    private String number;
    private String birthday;
    private String authority;
    private String validate;
    private String idCardPositiveImagePath;
    private String idCardNegativeImagePath;
    private String idCardHeadImagePath;
    private int height;
    private String graduate;


    private String wedding;
    private String livingAddress;
    private EmergencyContactMod emergencyContact;
    private String company;
    private String industry;
    private String skill;
    private String channel;

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getGraduate() {
        return graduate;
    }

    public void setGraduate(String graduate) {
        this.graduate = graduate;
    }

    public String getWedding() {
        return wedding;
    }

    public void setWedding(String wedding) {
        this.wedding = wedding;
    }

    public String getLivingAddress() {
        return livingAddress;
    }

    public void setLivingAddress(String livingAddress) {
        this.livingAddress = livingAddress;
    }

    public EmergencyContactMod getEmergencyContact() {
        return emergencyContact;
    }

    public void setEmergencyContact(EmergencyContactMod emergencyContact) {
        this.emergencyContact = emergencyContact;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAuthority() {
        return authority;
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }

    public String getValidate() {
        return validate;
    }

    public void setValidate(String validate) {
        this.validate = validate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPeople() {
        return people;
    }

    public void setPeople(String people) {
        this.people = people;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getIdCardPositiveImagePath() {
        return idCardPositiveImagePath;
    }

    public void setIdCardPositiveImagePath(String idCardPositiveImagePath) {
        this.idCardPositiveImagePath = idCardPositiveImagePath;
    }

    public String getIdCardNegativeImagePath() {
        return idCardNegativeImagePath;
    }

    public void setIdCardNegativeImagePath(String idCardNegativeImagePath) {
        this.idCardNegativeImagePath = idCardNegativeImagePath;
    }

    public String getIdCardHeadImagePath() {
        return idCardHeadImagePath;
    }

    public void setIdCardHeadImagePath(String idCardHeadImagePath) {
        this.idCardHeadImagePath = idCardHeadImagePath;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.username);
        dest.writeString(this.password);
        dest.writeString(this.name);
        dest.writeString(this.gender);
        dest.writeString(this.address);
        dest.writeString(this.people);
        dest.writeString(this.number);
        dest.writeString(this.birthday);
        dest.writeString(this.authority);
        dest.writeString(this.validate);
        dest.writeString(this.idCardPositiveImagePath);
        dest.writeString(this.idCardNegativeImagePath);
        dest.writeString(this.idCardHeadImagePath);
        dest.writeInt(this.height);
        dest.writeString(this.graduate);
        dest.writeString(this.wedding);
        dest.writeString(this.livingAddress);
        dest.writeParcelable(this.emergencyContact, flags);
        dest.writeString(this.company);
        dest.writeString(this.industry);
        dest.writeString(this.skill);
        dest.writeString(this.channel);
    }

    public User() {
    }

    protected User(Parcel in) {
        this.username = in.readString();
        this.password = in.readString();
        this.name = in.readString();
        this.gender = in.readString();
        this.address = in.readString();
        this.people = in.readString();
        this.number = in.readString();
        this.birthday = in.readString();
        this.authority = in.readString();
        this.validate = in.readString();
        this.idCardPositiveImagePath = in.readString();
        this.idCardNegativeImagePath = in.readString();
        this.idCardHeadImagePath = in.readString();
        this.height = in.readInt();
        this.graduate = in.readString();
        this.wedding = in.readString();
        this.livingAddress = in.readString();
        this.emergencyContact = in.readParcelable(EmergencyContactMod.class.getClassLoader());
        this.company = in.readString();
        this.industry = in.readString();
        this.skill = in.readString();
        this.channel = in.readString();
    }

    public static final Parcelable.Creator<User> CREATOR = new Parcelable.Creator<User>() {
        @Override
        public User createFromParcel(Parcel source) {
            return new User(source);
        }

        @Override
        public User[] newArray(int size) {
            return new User[size];
        }
    };
}
